<?php
/**
 * Author: 周斌斌 <553193368@qq.com>
 * Date: 17/3/6 PM2:31
 * 摘要:
 */

namespace app\qianyu\validate;


use think\Validate;

class IndexValidate extends Validate
{
    protected $rule = [
        ['userId', ['require'], ['请输入用户ID']],
        ['carorg', ['require'], ['请选择牌照']],
        ['engineno', ['require'], ['请输入发动机号']],
        ['frameno', ['require'], ['请输入车架号']],
        ['lsnum', ['require'], ['请输入公司']],
        ['lsprefix', ['require'], ['请输入头像']],
    ];

    protected $scene = [
        'weizhang' => ['userId', 'carorg'],
        'level' => ['level'],
        'index' => ['userId'],
        'query' => ['carorg','engineno','frameno','lsnum','lsprefix'],
    ];
}